<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/6/6
  Time: 16:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加页面</title>
</head>
<body>
<%--<center> <h1>学生考勤系统</h1> </center>--%>
<form action="" method="post">
    <center> <h1>学生考勤系统</h1> </center>
<table border="1" content="center">

    <tr>
        <td>学生姓名</td>
        <td>
            <select name="sid" id="">
                <c:forEach items="${list}" var="stu">
                    <option value="${stu.sid}">${stu.sname}</option>
                </c:forEach>
            </select>
        </td>
    </tr>
    <tr>
        <td>添加时间</td>
        <td>
            <input type="datetime-local" name="time">
        </td>
    </tr>
    <tr>
        <td>考勤状态</td>
        <td>
            已到:<input type="radio" value="1" name="type">
            迟到:<input type="radio" value="2" name="type">
            旷课:<input type="radio" value="3" name="type">
        </td>
    </tr>
    <tr>
        <td>
            <input type="submit"value="添加">
        </td>
    </tr>
</table>
</form>
</body>
</html>
